FROM registry.cn-hangzhou.aliyuncs.com/wjn0918/centos:centos7-aliyun

RUN <<C1 bash 
yum install -y wget java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel
wget https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
tar -xzvf apache-maven-3.8.8-bin.tar.gz -C /usr/local/
ln -s /usr/local/apache-maven-3.8.8/bin/mvn /usr/local/bin/mvn
rm -rf apache-maven-3.8.8-bin.tar.gz

C1
CMD ["tail", "-f", "/dev/null"]